package com.zmn.uac.common.constant;

/**
 * 类描述：
 *
 * @author xujie
 * @since 2021/05/19 15:47
 */
public class WeChatUrlConstant {

    /**
     * 微信公众号标签
     */
    public static final String WECHAT_TAGS_NAME_URL = "https://api.weixin.qq.com/cgi-bin/tags/get?access_token=%s";

    /**
     * 微信小程序 code session
     */
    public static final String CODE_2_SESSION_URL = "https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code";

    /**
     * 微信公众号用户信息
     */
    public static final String USER_INFO_URL = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=%s&openid=%s&lang=zh_CN";

    /**
     * OAuth2.0 版获取
     */
    public static final String OAUTH_2_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&code=%s&grant_type=authorization_code";

    /**
     * 微信APP 用户信息
     */
    public static final String SNS_USER_INFO_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=%s&openid=%s";
}
